package org.wgc.study.listner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.ItemReadListener;
import org.wgc.study.entity.Bloginfo;

/***
 *@title MyReadListener
 *@description <TODO description class purpose>
 *@author wgc_j
 *@version 1.0.0
 *@create 2025-08-06 15:35
 **/
@Slf4j
public class MyReadListener implements ItemReadListener<Bloginfo> {


    @Override
    public void beforeRead() {
    }

    @Override
    public void afterRead(Bloginfo item) {
    }

    @Override
    public void onReadError(Exception ex) {
        try {
            log.info(String.format("%s%n", ex.getMessage()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
